class CreateEshopTemplates < ActiveRecord::Migration
  def change
    create_table :eshop_templates, :force => true do |t|
      t.string :name, :limit => 30, :null => false
      t.string :presentation, :limit => 30, :null => false
      t.string :group, :limit => 30, :default => "system"
      t.text   :template
      t.text   :variables
      t.timestamps
    end

    add_index :eshop_templates, :name, :unique => true
  end
end
